

import * as types from '../actionType.js';
const memuTitleReducer=(state,action)=>{
    if(!state){
        return {
            menuTitle:'首页'
        }
    };
    switch(action.type){
        case types.CHANGE_MEMUTITLE:
            return {
                ...state,
                menuTitle:action.newTitle 
            };
            break;
        default:
            return state;
            break;  
    }
}

export default memuTitleReducer;






